REGDATA.BAS A Visual Basic(tm) Version 3 registration Module ============================================================= This is a module I wrote for an application that is likely to be used on both Windows 3.x and Windows 95 operating systems. I wanted the Uninstall feature of Win95 to list my uninstaller, without resorting to 'thunking' a 16-bit call to the 32-bit registration functions. The problem is that the 16-bit registration API does not allow the multiple keys that are required for the Uninstall entry. With a bit of experimentation, I found that if a REGEDIT4 file was merged using the correct entries, that it could be done, so a temporary .REG file is created 'on-the-fly' in the uninstall registration routine, and merged invisibly using regedit /s. ============================================================ The resultant BAS file contains 2 main functions: DoRegistration registers your app; DoUnregistration unregisters it. Both functions will detect the windows version, and act accordingly. Tested under build 490 (June release 2) You will need to set the FLAG variables to those appropriate to your particular needs, and setup the parameters (lots of them!) for the calls, but I've tried to make it as generic as possible, so that you can 'plug in' REGDATA with only a small amount of effort. The code is supplied 'as is' and you could most likely improve/modify it for your own needs. It works for me! Gordon Bamber. August 1995 < gbamber@mistral.co.uk >